//
//  HYSmileiOSTests.m
//  HYSmileiOSTests
//
//  Created by alekye on 16/4/23.
//  Copyright © 2016年 heyou. All rights reserved.
//

#import <XCTest/XCTest.h>
#import "heyou.h"
#import "UserInfoBrief.h"
#import "AFNetworking.h"

@interface HYSmileiOSTests : XCTestCase

@end

@implementation HYSmileiOSTests

- (void)setUp {
    [super setUp];
    // Put setup code here. This method is called before the invocation of each test method in the class.
    NSLog(@"setUp");
}

- (void)tearDown {
    // Put teardown code here. This method is called after the invocation of each test method in the class.
    [super tearDown];
}

- (void)testExample {
    // This is an example of a functional test case.
    // Use XCTAssert and related functions to verify your tests produce the correct results.
    NSLog(@"testExample ======================== 1");
    NSLog(@"testExample ======================== %@", [SDVersion deviceName]);
    NSLog(@"testExample ======================== 3");
    
    UserInfoBrief *info = [UserInfoBrief new];
    info.mid = @"123456";
    info.name = @"alekye";
    info.from = @"微信";
    
    AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
    [manager GET:@"https://httpbin.org/get" parameters:nil progress:nil success:^(NSURLSessionTask *task, id responseObject) {
        NSLog(@"JSON: %@", responseObject);
    } failure:^(NSURLSessionTask *operation, NSError *error) {
        NSLog(@"Error: %@", error);
    }];
}

- (void)testPerformanceExample {
    // This is an example of a performance test case.
    [self measureBlock:^{
        // Put the code you want to measure the time of here.
    }];
}

@end
